home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / idl / nsIDOMSVGSVGElement.idl < prev    next >
Text File  |  2006-05-08  |  5KB  |  130 lines

  1. /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.  *
  5.  * The contents of this file are subject to the Mozilla Public License Version
  6.  * 1.1 (the "License"); you may not use this file except in compliance with
  7.  * the License. You may obtain a copy of the License at
  8.  * http://www.mozilla.org/MPL/
  9.  *
  10.  * Software distributed under the License is distributed on an "AS IS" basis,
  11.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.  * for the specific language governing rights and limitations under the
  13.  * License.
  14.  *
  15.  * The Original Code is the Mozilla SVG project.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Crocodile Clips Ltd..
  19.  * Portions created by the Initial Developer are Copyright (C) 2001
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
  24.  *
  25.  * Alternatively, the contents of this file may be used under the terms of
  26.  * either of the GNU General Public License Version 2 or later (the "GPL"),
  27.  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  * in which case the provisions of the GPL or the LGPL are applicable instead
  29.  * of those above. If you wish to allow use of your version of this file only
  30.  * under the terms of either the GPL or the LGPL, and not to allow others to
  31.  * use your version of this file under the terms of the MPL, indicate your
  32.  * decision by deleting the provisions above and replace them with the notice
  33.  * and other provisions required by the GPL or the LGPL. If you do not delete
  34.  * the provisions above, a recipient may use your version of this file under
  35.  * the terms of any one of the MPL, the GPL or the LGPL.
  36.  *
  37.  * ***** END LICENSE BLOCK ***** */
  38.  
  39. #include "nsIDOMSVGElement.idl"
  40.  
  41. interface nsIDOMSVGAnimatedLength;
  42. interface nsIDOMSVGRect;
  43. interface nsIDOMSVGViewSpec;
  44. interface nsIDOMSVGPoint;
  45. interface nsIDOMSVGNumber;
  46. interface nsIDOMSVGLength;
  47. interface nsIDOMSVGAngle;
  48. interface nsIDOMSVGMatrix;
  49. interface nsIDOMSVGTransform;
  50.  
  51. [scriptable, uuid(67b8f41e-3577-4c8a-b1de-bef51186fe08)]
  52. interface nsIDOMSVGSVGElement
  53.   : nsIDOMSVGElement
  54. /*
  55.         The SVG DOM makes use of multiple interface inheritance.
  56.         Since XPCOM only supports single interface inheritance,
  57.         the best thing that we can do is to promise that whenever
  58.         an object implements _this_ interface it will also
  59.         implement the following interfaces. (We then have to QI to
  60.         hop between them.)
  61.         
  62.     nsIDOMSVGTests,
  63.     nsIDOMSVGLangSpace,
  64.     nsIDOMSVGExternalResourcesRequired,
  65.     nsIDOMSVGStylable,
  66.     nsIDOMSVGLocatable,
  67.     nsIDOMSVGFitToViewBox,
  68.     nsIDOMSVGZoomAndPan,
  69.     events::nsIDOMEventTarget,
  70.     events::nsIDOMDocumentEvent,
  71.     css::nsIDOMViewCSS,
  72.     css::nsIDOMDocumentCSS
  73. */
  74.   readonly attribute nsIDOMSVGAnimatedLength x;
  75.   readonly attribute nsIDOMSVGAnimatedLength y;
  76.   readonly attribute nsIDOMSVGAnimatedLength width;
  77.   readonly attribute nsIDOMSVGAnimatedLength height;
  78.   attribute DOMString         contentScriptType;
  79.       // raises DOMException on setting
  80.   attribute DOMString         contentStyleType;
  81.       // raises DOMException on setting
  82.   readonly attribute nsIDOMSVGRect     viewport;
  83.   readonly attribute float pixelUnitToMillimeterX;
  84.   readonly attribute float pixelUnitToMillimeterY;
  85.   readonly attribute float screenPixelToMillimeterX;
  86.   readonly attribute float screenPixelToMillimeterY;
  87.   attribute boolean useCurrentView;
  88.       // raises DOMException on setting
  89.   readonly attribute nsIDOMSVGViewSpec currentView;
  90.   attribute float currentScale;
  91.       // raises DOMException on setting
  92.   readonly attribute nsIDOMSVGPoint currentTranslate;
  93.  
  94.   unsigned long suspendRedraw(in unsigned long max_wait_milliseconds);
  95.   void          unsuspendRedraw(in unsigned long suspend_handle_id);
  96.       // raises( DOMException );
  97.   void          unsuspendRedrawAll();
  98.   void          forceRedraw();
  99.   void          pauseAnimations();
  100.   void          unpauseAnimations();
  101.   boolean       animationsPaused();
  102.   float         getCurrentTime();
  103.   void          setCurrentTime(in float seconds);
  104.   nsIDOMNodeList getIntersectionList(in nsIDOMSVGRect rect,
  105.                                      in nsIDOMSVGElement referenceElement);
  106.   nsIDOMNodeList getEnclosureList(in nsIDOMSVGRect rect, in nsIDOMSVGElement referenceElement);
  107.   boolean       checkIntersection(in nsIDOMSVGElement element, in nsIDOMSVGRect rect);
  108.   boolean       checkEnclosure(in nsIDOMSVGElement element, in nsIDOMSVGRect rect);
  109.   void          deSelectAll();
  110.   nsIDOMSVGNumber       createSVGNumber();
  111.   nsIDOMSVGLength       createSVGLength();
  112.   nsIDOMSVGAngle        createSVGAngle();
  113.   nsIDOMSVGPoint        createSVGPoint();
  114.   nsIDOMSVGMatrix       createSVGMatrix();
  115.   nsIDOMSVGRect         createSVGRect();
  116.   nsIDOMSVGTransform    createSVGTransform();
  117.   nsIDOMSVGTransform    createSVGTransformFromMatrix(in nsIDOMSVGMatrix matrix);
  118.   DOMString             createSVGString();
  119.   nsIDOMElement         getElementById(in DOMString elementId);
  120.  
  121.   // Mozilla extension, not part of W3 SVG DOM:
  122.   nsIDOMSVGMatrix getViewboxToViewportTransform();
  123. };
  124.  
  125.  
  126.  
  127.  
  128.  
  129.